package com.syf;

import com.syf.config.annotation.InitBean;
import com.syf.config.result.ResponseResultInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Import;

/**
 * admin-service启动类
 */
//@Import(ResponseResultInterceptor.class)
@SpringBootApplication
@EnableDiscoveryClient   //注册中心发现，扫描该服务nacos
@EnableFeignClients      //扫描和注册Openfeign客户端bean定义【将feign接口生成一个对象放在spring容器中】
@EnableCaching  //开启spring-cache(辅助redis)
public class AdminServiceApplication {

    public static void main(String[] args) {
        SpringApplication.run(AdminServiceApplication.class ,args) ;
        System.out.println("(♥◠‿◠)ﾉﾞ  应用商店管理模块启动成功   ლ(´ڡ`ლ)ﾞ  \n");
    }
}
